#{extends 'main.html' /}
#{set title:'Delete Activity' /}

<h2>Delete Activity</h2>

<table border="1">

<tr>
<th>Activity ID</th>
<th>Name</th>
<th>Delete</th>

</tr>

#{list items:models.Activity.findAll() , as:'a'}
<tr>
<td>${a.id}</td>
<td>${a.name}</td>
<td align="center">

<form action="@{Application.deleteActivity()}" method="post">
<input type="hidden" name="id" value="${a.id}">
<input type="submit" value="x">
</form>

</td>
#{/list}
</tr>
</table>
